SP Language (voice; language; region; script) -> err
voice string (63) specifys the voice you want to use.
language integer )
region integer )
script integer all these return the code for the language, region
and script the specified voice is able to handle.
Apple has defined 140 languages, 44 regions and
34 scripts in Inside Macintosh Text. See the lists
in the Script Manager chapter for a full listing.
The script code is the kind of text the voice can
process and the language and region code of the
output produced.
err integer returns the error which occured.
A value of zero indicates no error occured. See
below for a list of possible errors.
Returns language specific information about the specified voice.
Until Apple or third-parties release non-U.S. versions of synthesizers and voices you will only get zero values which are the values for the U.S. language and region and the Roman script.
This function enables the designer to filter any voice based on the language-, region- and script code.
Examples:
$err := SP Language ("*";$language;$region;$script)
$err := SP Language ("Marvin";$language;$region;$script)
$err := SP Language ($voicename;$language;$region;$script)
Possible errors:
0 No Error
-4 Speech Pack can not be used (Speech Mgr not available)
-50 Parameter error (inside external, not necessarily the